import 'package:boss/models/takeout_order_list_data.dart';
import 'package:boss/ui/page/takeoutManagement/page/takeoutList/widget/message_row.dart';
import 'package:boss/ui/page/takeoutManagement/page/takeoutList/widget/phone_icon.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flustars/flustars.dart' as flustars;
import 'package:flutter/material.dart';

class TakeoutDeliveryPanel extends StatelessWidget {
  final TakeoutOrderItem data;
  const TakeoutDeliveryPanel({Key key, this.data}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding:  EdgeInsets.symmetric(
        horizontal: 60.w,
        vertical: 15.w,
      ),
      child: MessageRow(
        children: <Widget>[
          Text(data.deliveryName),
          Text(flustars.TextUtil.hideNumber(data.deliveryPhone)),
          Text(data.addressDetail),
          Text('订单于：${data.deliveryTime}送达客户处'),
        ],
        suffix:PhoneIcon(data.deliveryPhone),
      ),
    );
  }
}
